<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: #3e3e;
            border-radius: 50%;
            transform: translate(0);
            
            /* position:relative; */
        }
    </style>
</head>
<body>
    <div style='transition:all 5s'></div>
    <script>
        div = document.querySelector('div')
        div.onmouseover = function(){
            this.style.width = '200px'
            this.style.borderRadius = '40%'
            this.style.transform = 'translate(200px,200px) '
        }
        div.onmouseout = function(){
            this.style.width = '100px';
            this.style.borderRadius = '50%'
            this.style.transform = 'translate(0)'
        }
    </script>
</body>
</html>